import { CodeEditor } from "../Setting/CodeEditor"
import { useComponentStore } from "../../editor/stores/components"

export function Source(){
    const { components } = useComponentStore()
    return (
        <CodeEditor value={JSON.stringify(components, null, 2)} defaultOptions={{path: "component.json", language: "json"}}></CodeEditor>
    )
}